@layout("/common/_container.html"){
<div class="row">
    <div class="col-sm-12">
        <div class="ibox float-e-margins">
            <div class="ibox-title">
                <h5>库存查询管理</h5>
            </div>
            <div class="ibox-content">
                <div class="row row-lg">
                    <div class="col-sm-12">
                        <div class="row">
                            <div class="col-sm-3">
                                <#NameCon id="condition" name="标识码" />
                            </div>
                            <div class="col-sm-3">
                                <#button name="查看以往记录" icon="fa-search" clickFun="Instock.search()"/>
                            </div>
                        </div>
                        <div class="hidden-xs" id="InstockTableToolbar" role="group">
                            <!--若是需要，则将add0改为add-->
                            @if(shiro.hasPermission("/instock/add0")){
                                <#button name="添加" icon="fa-plus" clickFun="Instock.openAddInstock()"/>
                            @}
                            @if(shiro.hasPermission("/instock/addIn")){
                            <#button name="添加入库" icon="fa-plus" clickFun="Instock.openAddIn()"/>
                            @}
                            @if(shiro.hasPermission("/instock/addOut")){
                            <#button name="添加出库" icon="fa-plus" clickFun="Instock.openAddOut()"/>
                            @}
                            @if(shiro.hasPermission("/instock/update")){
                                <#button name="修改" icon="fa-edit" clickFun="Instock.openInstockDetail()" space="true"/>
                            @}
                            @if(shiro.hasPermission("/instock/delete")){
                                <#button name="删除" icon="fa-remove" clickFun="Instock.delete()" space="true"/>
                            @}
                            @if(shiro.hasPermission("/instock/standardNumber")){
                            <#button name="库存报警" icon="fa-bolt" clickFun="Instock.lookStandardNumber()" space="true"/>
                            @}
                            <!--若要显示此按钮，则将standardCode0改为standardCode,另外，这样没有输入，是不能获取到标识码的-->
                            @if(shiro.hasPermission("/instock/standardCode0")){
                            <#button name="查看以往记录" icon="fa-eye" clickFun="Instock.lookStandardCode()" space="true"/>
                            @}
                        </div>
                        <#table id="InstockTable"/>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="${ctxPath}/static/modular/inStock/instock/instock.js"></script>
@}
